package com.daylightrobbery.server.packet.game.card;

import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;

@Component
public class BuyCardPacket implements RoomDataPacket {
    public static int type = 90001;
    public String uid;
    public int roomId;
    public int tickets ;
    public int cardType;

    public int getCardType() {
        return cardType;
    }

    public BuyCardPacket setCardType(int cardType) {
        this.cardType = cardType;
        return this;
    }

    @Override
    public DataPacket process() {
        return this;
    }

    public String getUid() {
        return uid;
    }

    @Override
    public int getType() {
        return type;
    }

    @Override
    public int getRoomId() {
        return roomId;
    }

    public BuyCardPacket setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public BuyCardPacket setRoomId(int roomId) {
        this.roomId = roomId;
        return this;
    }

    public int getTickets() {
        return tickets;
    }

    public BuyCardPacket setTickets(int tickets) {
        this.tickets = tickets;
        return this;
    }

    @Override
    public String toString() {
        return "BuyCardPacket{" +
                "uid='" + uid + '\'' +
                ", roomId=" + roomId +
                ", tickets=" + tickets +
                ", cardType=" + cardType +
                '}';
    }
    
}
